			<!-- END .content-wrapper -->
			</div>					
					
			<?php global $data; ?>
					
			<?php /* Only display widget areas if widgets are placed in them */ 
			if ( 
				is_active_sidebar('footer-widget-area-one') or 
				is_active_sidebar('footer-widget-area-two') or 
				is_active_sidebar('footer-widget-area-three') or 
				is_active_sidebar('footer-widget-area-four') 
			) { ?>	
						
			<!-- BEGIN #footer-wrapper -->
			<div id="footer-wrapper">

				<!-- BEGIN .footer-columns-4 -->
				<ul class="footer-columns-4 clearfix">
							
					<?php if ( is_active_sidebar('footer-widget-area-one') ) { ?>	
						<li class="footer-col4">
							<?php dynamic_sidebar( 'footer-widget-area-one' ); ?>
						</li>
					<?php } ?>
							
					<?php if ( is_active_sidebar('footer-widget-area-two') ) { ?>	
						<li class="footer-col4">
							<?php dynamic_sidebar( 'footer-widget-area-two' ); ?>
						</li>
					<?php } ?>
							
					<?php if ( is_active_sidebar('footer-widget-area-three') ) { ?>	
						<li class="footer-col4">
							<?php dynamic_sidebar( 'footer-widget-area-three' ); ?>
						</li>
					<?php } ?>
							
					<?php if ( is_active_sidebar('footer-widget-area-four') ) { ?>	
						<li class="footer-col4">
							<?php dynamic_sidebar( 'footer-widget-area-four' ); ?>
						</li>
					<?php } ?>
							
				</ul>

			<!-- END #footer-wrapper -->
			</div>
					
			<?php } else {
				echo '<div id="footer-margin"></div>';				
			} ?>
					
			<!-- BEGIN #footer-bottom -->
			<div id="footer-bottom" class="clearfix">
				
				<!-- BEGIN .fl -->
				<div class="fl clearfix">
							
					<?php if ( has_nav_menu( 'footer' ) ) { ?>

						<!-- Secondary Menu -->
						<?php wp_nav_menu( array(
							'theme_location' => 'footer',
							'container' =>false,
							'items_wrap' => '<ul class="footer-menu">%3$s</ul>',
							'echo' => true,
							'before' => '',
							'after' => '',
							'link_before' => '',
							'link_after' => '',
							'depth' => 0 )
						); ?>

					<?php } ?>			
				
				<!-- END .fl -->
				</div>	
						
				<?php
				if ( $data['footer_msg'] ) :
					echo '<div class="fr clearfix"><p>' . $data['footer_msg'] . '</p></div>';
				else :
					echo '<div class="fr clearfix"><p>' . __('&copy; Copyright 2013','qns') . '</p></div>';
				endif; ?>
				
	
			<!-- END #footer-bottom -->
			</div>
			
		</div>
		<!-- END #background-wrapper -->

		<?php wp_footer(); ?>

	<!-- END body -->
	</body>
</html>